package cn.bonoon.kernel.web.handlers;

import cn.bonoon.kernel.events.DialogEvent;
import cn.bonoon.kernel.support.entities.Persistable;
import cn.bonoon.kernel.support.services.IService;
import cn.bonoon.kernel.web.models.DialogModel;

/**
 * <pre>
 * 在生成对话框界面的时候，需要进行的数据的初始化处理操作
 * </pre>
 * @author jackson
 *
 */
public interface DialogFormInitializer<E extends Persistable> {

	Object init(IService<E> service, DialogModel model, DialogEvent event, Long id, Object form)throws Exception;

}
